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AAAA,EACAC,MAAAA,EACAK,mBAAA,KAAAA,kBAAA,CAEA,EAAKuC,EACL,CACA","sources":["webpack://_N_E/?36a7","webpack://_N_E/./components/modules/news/newsDetail/newsDetailButtons/newsDetailBackButton/newsDetailBackButton.tsx","webpack://_N_E/./components/modules/news/constants.ts","webpack://_N_E/./components/elements/icons/errorBoundaryIcon/errorBoundaryIcon.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailFallbackUI/newsDetailFallbackUI.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailContentView/newsDetailContentView.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailHeaderInfo/newsDetailHeaderInfo.tsx","webpack://_N_E/./components/elements/icons/videoPlayIcon/videoPlayIcon.tsx","webpack://_N_E/./components/modules/news/thumbnailComponents/newsDetailThumbnailContent/newsDetailThumbnailContent.tsx","webpack://_N_E/./components/modules/news/thumbnailComponents/newsDetailNavigationThumbnail/newsDetailNavigationThumbnail.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailButtons/newsDetailCloseButton/newsDetailCloseButton.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailNavigation/newsNavigationStyles.ts","webpack://_N_E/./components/modules/news/newsDetail/newsDetailNavigation/selectStoryLabel/selectStoryLabel.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailNavigation/disabledNewsNavigationButton/disabledNewsNavigationButton.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailNavigation/newsDetailStoriesNavigation/newsDetailStoriesNavigation.tsx","webpack://_N_E/./components/modules/news/newsDetail/newsDetailNavigation/newsDetailNavigation.tsx","webpack://_N_E/./components/modules/press/common/formatPressDate.ts","webpack://_N_E/./pages/wbweb-website-2/news/[storyid]/index.tsx","webpack://_N_E/./node_modules/react-error-boundary/dist/react-error-boundary.esm.js"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/wbweb-website-2/news/[storyid]\",\n function () {\n return require(\"private-next-pages/wbweb-website-2/news/[storyid]/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/wbweb-website-2/news/[storyid]\"])\n });\n }\n ","/* eslint-disable prettier/prettier */\n/* eslint-disable indent */\nimport Link from 'next/link';\nimport styled from 'styled-components';\nimport { theme } from '../../../../../../pages/_app';\nimport { selectUserProfile } from '../../../../../../store/redux/common/dataLayer/user/slices/userSlice';\nimport { useAppSelector } from '../../../../../../store/redux/storeHooks/hooks';\nimport { ArrowIcon } from '../../../../../elements/icons/arrow/arrowIcon';\nimport { arrowDirections } from '../../../../../utilities/arrowIconDirections';\nimport { translate } from '../../../../../utilities/translate';\nimport { activeHurricanePath } from '../../../../hurricane/constants';\n\nexport interface NewsDetailBackButtonProps {\n backToPageText: string;\n backToPagePath: string;\n}\n\n// was: StoryPopupBackButton\nexport default function NewsDetailBackButton({ backToPageText, backToPagePath }: NewsDetailBackButtonProps) {\n const { userProfile } = useAppSelector(selectUserProfile);\n let linkWithOptionalParams = backToPagePath;\n\n if (backToPagePath === activeHurricanePath) {\n linkWithOptionalParams = `${backToPagePath}?su=${userProfile?.WindUnit}&pu=${userProfile?.PressureUnit}`;\n }\n\n const normalizeLink = linkWithOptionalParams.includes('hurricane/active') || linkWithOptionalParams.includes('hurricane/outlook')\n ? linkWithOptionalParams\n : `/${linkWithOptionalParams}`;\n\n return (\n \n \n \n \n \n {`${translate('backTo')} ${backToPageText}`}\n \n \n );\n}\n\nconst StyledLink = styled(Link)`\n text-decoration: none;\n text-transform: capitalize;\n`;\n\nconst Container = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n min-height: 48px;\n height: auto;\n font-size: 17px;\n font-family: ${({ theme }) => theme.typography.fontFamilies.secondary};\n text-decoration: none;\n color: ${({ theme }) => theme.colors.arrowIconFillColor};\n padding: 10px 0px;\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 100%;\n font-size: 14px;\n border-bottom: ${({ theme }) => `1px solid ${theme.colors.weakerText}`};\n }\n`;\n\nconst Icon = styled.span`\n width: 3%;\n height: 100%;\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 7%;\n }\n`;\n\nconst BackText = styled.span`\n width: 39%;\n height: 100%;\n margin-left: 5px;\n margin-top: -5px;\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 93%;\n height: 100%;\n margin-left: 3px;\n margin-top: -3px;\n }\n`;\n","// eslint-disable-next-line quotes\nexport const defaultDateFormat = \"MMMM d, yyyy 'at' hh:mm a ZZZZ\";\nexport const defaultIANATimeZone = 'America/New_York';\n\nexport const NewsDetailAdConfigs = {\n mobile: { width: 300, height: 250, slotId: 'news_detail_story_mobile_web_x13' },\n tablet: { width: 300, height: 600, slotId: 'news_detail_x16' },\n desktop: { width: 300, height: 600, slotId: 'news_detail_x16' }\n};\n","import { memo } from 'react';\nimport { theme } from '../../../../pages/_app';\nimport { IconProps } from '../iconInterfaces';\n\nexport const ErrorBoundaryIcon = memo(\n ({ width = 32, height = 32, symbolFillColor = theme.colors.errorBoundary }: IconProps) => {\n return (\n \n \n \n \n );\n }\n);\n\nErrorBoundaryIcon.displayName = 'ErrorBoundaryIcon';\n","/* eslint-disable no-extra-parens */\n/* eslint-disable prettier/prettier */\nimport styled from 'styled-components';\nimport { ErrorBoundaryIcon } from '../../../../elements/icons/errorBoundaryIcon/errorBoundaryIcon';\nimport { translate } from '../../../../utilities/translate';\n\nconst NewsErrorUI = (): JSX.Element => {\n return (\n \n \n \n \n {translate('failedToLoad')}\n \n {translate('dataLoadFirstErrorMessage')}\n {translate('dataLoadSecondErrorMessage')}\n \n \n );\n};\nNewsErrorUI.displayName = 'NewsErrorUI';\n\nexport interface ErrorUIProps {\n isError: boolean;\n children?: JSX.Element;\n}\n\nexport const CatchErrorInStory = ({ isError, children }: ErrorUIProps): JSX.Element => {\n if (isError) {\n return ;\n }\n return <>{children};\n};\n\nCatchErrorInStory.displayName = 'CatchErrorInStory';\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n padding: 12px 10px;\n background: ${({ theme }) => theme.colors.baseWeakest};\n justify-content: center;\n align-items: center;\n width: 100%;\n min-height: 600px;\n margin-right: 10px;\n gap: 12px;\n border-radius: 2px;\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 100%;\n min-height: 320px;\n }\n`;\n\nconst IconWrapper = styled.span`\n display: flex;\n flex-direction: column;\n background: ${({ theme }) => theme.colors.newsDetailFallbackIconBackground};\n justify-content: center;\n align-items: center;\n border-radius: 24px;\n width: 48px;\n height: 48px;\n padding: 8px;\n`;\n\ninterface NoDataTextProps {\n isTitle?: boolean;\n}\n\nconst NoDataText = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n font-family: Source Sans Pro;\n font-style: normal;\n font-size: 16px;\n line-height: 20px;\n color: ${({ theme }) => theme.colors.storyDateGrey};\n font-weight: ${({ isTitle }) => (isTitle ? '600' : 'normal')};\n`;\n\nconst NoDataDescriptionWrapper = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n","/* eslint-disable prettier/prettier */\n\nimport styled from 'styled-components';\nimport { useDeviceType } from '../../../../../hooks/common/useDeviceType/useDeviceType';\nimport { DisplayAdWidgetWrapper } from '../../../ads/displayAds/widget/displayAdWidgetWrapper';\nimport { StoryImageVideoDisplay } from '../../../press/pressDetail/storyImageVideoDisplay/storyImageVideoDisplay';\nimport { NewsDetailAdConfigs } from '../../constants';\nimport { CatchErrorInStory } from '../newsDetailFallbackUI/newsDetailFallbackUI';\n\nexport interface NewsDetailContentViewProps {\n storyImageUrl: string | undefined;\n storyText: string;\n storyVideoUrl?: string | null;\n storyImageCaption: string | null;\n canonicalUrl: string;\n isStoryWithMapsOrIndexTag: boolean;\n}\n\n// was: StoryContentView\nexport default function NewsDetailContentView({\n storyImageUrl,\n storyText,\n isStoryWithMapsOrIndexTag,\n storyVideoUrl,\n storyImageCaption\n}: NewsDetailContentViewProps) {\n const { deviceTypeKey, isMobile, isTablet } = useDeviceType();\n\n if (isMobile) {\n return (\n \n \n \n <>\n \n \n \n \n \n \n \n \n \n );\n }\n if (isTablet) {\n return (\n \n \n \n \n \n \n \n \n \n );\n }\n return (\n \n \n \n \n \n \n \n \n \n );\n}\n\nconst Container = styled.div`\n display: flex;\n justify-content: flex-start;\n height: auto;\n width: 100%;\n flex-direction: column;\n ${({ theme }) => theme.mediaQueries.large} {\n flex-direction: column;\n width: 1100px;\n margin-left: auto;\n margin-right: auto;\n }\n`;\n\nconst ContentBody = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n height: auto;\n margin-bottom: 7px;\n\n ${({ theme }) => theme.mediaQueries.large} {\n flex-direction: row;\n }\n ${({ theme }) => theme.mediaQueries.tablet} {\n border-bottom: ${({ theme }) => `1px solid ${theme.colors.black}`};\n }\n`;\n\nconst ContentBodyWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n margin-right: 10px;\n\n ${({ theme }) => theme.mediaQueries.large} {\n flex-direction: column;\n }\n\n ${({ theme }) => theme.mediaQueries.tablet} {\n flex-direction: row;\n width: 100%;\n padding: 5px 0 5px 0px;\n }\n`;\n\nexport const StoryText = styled.p`\n height: auto;\n border-bottom: ${({ theme }) => `1px solid ${theme.colors.black}`};\n font-size: 20px;\n line-height: 32px;\n font-family: ${({ theme }) => theme.typography.fontFamilies.secondary};\n font-weight: 350;\n color: ${({ theme }) => theme.colors.strongText};\n\n ${({ theme }) => theme.mediaQueries.tablet} {\n border-bottom: ${({ theme }) => `0 solid ${theme.colors.black}`};\n margin-right: 10px;\n }\n ${({ theme }) => theme.mediaQueries.mobile} {\n font-size: 16px;\n line-height: 23px;\n margin-top: 19px;\n }\n`;\n\nconst MobileAdWrapper = styled.div`\n margin-top: 20px;\n`;\n","import styled from 'styled-components';\n\nexport interface NewsDetailHeaderInfoProps {\n storyTitle: string;\n storyDate?: string;\n storyAuthor: string;\n}\n\n// was: StoryHeaderDetails\nexport default function NewsDetailHeaderInfo({ storyTitle, storyDate, storyAuthor }: NewsDetailHeaderInfoProps) {\n return (\n \n {storyTitle}\n {storyDate}\n {storyAuthor}\n \n );\n}\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n line-height: 1.8;\n font-family: ${({ theme }) => theme.typography.fontFamilies.secondary};\n color: ${({ theme }) => theme.colors.newsDetailHeaderContainer};\n ${({ theme }) => theme.mediaQueries.large} {\n font-size: 18px;\n font-weight: 300;\n width: calc(100% - 300px);\n height: auto;\n }\n`;\n\nconst StoryTitle = styled.h1`\n display: flex;\n width: 100%;\n height: 70%;\n justify-content: flex-start;\n font-size: 35px;\n line-height: 40px;\n color: ${({ theme }) => theme.colors.black};\n font-weight: 400;\n font-family: ${({ theme }) => theme.typography.fontFamilies.secondary};\n ${({ theme }) => theme.mediaQueries.mobile} {\n font-size: 20px;\n line-height: 25px;\n }\n`;\n\nconst StoryDetails = styled.div`\n width: 100%;\n height: 15%;\n font-size: 14px;\n font-weight: 400;\n text-rendering: optimizeLegibility;\n text-shadow: ${({ theme }) => `0 1px 2px ${theme.colors.textShadow}`};\n`;\n","import { theme } from '../../../../pages/_app';\nimport { IconProps } from '../iconInterfaces';\n\nexport const VideoPlayIcon = ({\n symbolFillColor = theme.colors.base,\n strokeColor = theme.colors.base,\n width = 30,\n height = 30\n}: IconProps) => {\n return (\n \n \n \n \n );\n};\n\nVideoPlayIcon.displayName = 'VideoPlayIcon';\n","/* eslint-disable no-extra-parens */\n/* eslint-disable prettier/prettier */\nimport Image from 'next/image';\nimport { useState } from 'react';\nimport styled from 'styled-components';\nimport { VideoPlayIcon } from '../../../../elements/icons/videoPlayIcon/videoPlayIcon';\nimport { StoryImageLoadError } from '../../../press/pressDetail/storyImageLoadError/storyImageLoadError';\n\n// was: PopupNavThumbnailContent\nexport interface NewsDetailThumbnailContentProps {\n storyImageUrl: string | null;\n hasVideoLinkUrl: string | string[] | undefined;\n isNavThumbnail: boolean;\n imageCaption?: string;\n}\n\nexport default function NewsDetailThumbnailContent({\n storyImageUrl,\n hasVideoLinkUrl,\n isNavThumbnail,\n imageCaption\n}: NewsDetailThumbnailContentProps) {\n const [imgLoaded, setImgLoaded] = useState(false);\n const [imgLoadError, setImageLoadError] = useState(false);\n\n const handleImageLoad = () => {\n setImgLoaded(true);\n };\n\n const handleImageError = () => {\n setImageLoadError(true);\n };\n\n return (\n <>\n {storyImageUrl && !imgLoadError ? (\n \n ) : (\n !imgLoaded && \n )}\n {hasVideoLinkUrl && !imgLoadError && imgLoaded && (\n \n {' '}\n \n )}\n \n );\n}\n\nconst PlayIconContainer = styled.div`\n display: flex;\n position: absolute;\n justify-content: center;\n top: 60%;\n right: 70%;\n ${({ theme }) => theme.mediaQueries.tablet} {\n right: 60%;\n }\n`;\n","/* eslint-disable prettier/prettier */\nimport styled from 'styled-components';\nimport { useDeviceType } from '../../../../../hooks/common/useDeviceType/useDeviceType';\nimport NewsDetailThumbnailContent from '../newsDetailThumbnailContent/newsDetailThumbnailContent';\n\nexport interface NewsDetailNavigationThumbnailProps {\n storyImageUrl: string | null;\n videoLinkUrl: string | string[] | undefined;\n imageCaption?: string;\n}\n\nexport default function NewsDetailNavigationThumbnail({\n storyImageUrl,\n videoLinkUrl,\n imageCaption\n}: NewsDetailNavigationThumbnailProps) {\n const { isMobile } = useDeviceType();\n\n if (isMobile) {\n return null;\n }\n\n return (\n \n {(storyImageUrl || videoLinkUrl)\n && \n }\n \n );\n}\n\nconst Container = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40.5%;\n height: 90%;\n position: relative;\n`;\n","/* eslint-disable prettier/prettier */\n/* eslint-disable indent */\nimport Link from 'next/link';\nimport styled from 'styled-components';\nimport { selectUserProfile } from '../../../../../../store/redux/common/dataLayer/user/slices/userSlice';\nimport { useAppSelector } from '../../../../../../store/redux/storeHooks/hooks';\nimport { CloseIcon } from '../../../../../elements/icons/closeIcon/closeIcon';\nimport { activeHurricanePath } from '../../../../hurricane/constants';\n\nexport interface NewsDetailCloseButtonProps {\n returnPath: string;\n}\n\n// was: StoriesCloseButton\nexport default function NewsDetailCloseButton({ returnPath }: NewsDetailCloseButtonProps) {\n const { userProfile } = useAppSelector(selectUserProfile);\n let linkWithOptionalParams = returnPath;\n\n if (returnPath === activeHurricanePath) {\n linkWithOptionalParams = `${returnPath}?su=${userProfile?.WindUnit}&pu=${userProfile?.PressureUnit}`;\n }\n\n const normalizeLink = linkWithOptionalParams.includes('hurricane/active') || linkWithOptionalParams.includes('hurricane/outlook')\n ? linkWithOptionalParams\n : `/${linkWithOptionalParams}`;\n\n return (\n \n \n \n );\n}\n\nconst Container = styled(Link)`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n transform: translate(0%, 0%);\n width: 48px;\n height: 48px;\n cursor: pointer;\n border-radius: 100%;\n border: ${({ theme }) => `1px solid ${theme.colors.weakerText}`};\n`;\n","/* eslint-disable no-extra-parens */\n/* eslint-disable prettier/prettier */\nimport styled, { css } from 'styled-components';\n\nexport const CommonNavStyle = css`\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n text-decoration: none;\n height: 100%;\n width: 20%;\n ${({ theme }) => theme.mediaQueries.tablet} {\n width: 35%;\n }\n`;\n\ninterface ArrowContainerProp {\n isNext?: boolean;\n}\n\nexport const ArrowContainer = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 100%;\n width: 13%;\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 100%;\n ${({ isNext }) => (isNext ? 'justify-content: flex-end;' : 'justify-content: flex-start;')}\n }\n`;\n","/* eslint-disable no-extra-parens */\n/* eslint-disable prettier/prettier */\nimport styled from 'styled-components';\nimport { useDeviceType } from '../../../../../../hooks/common/useDeviceType/useDeviceType';\nimport { translate } from '../../../../../utilities/translate';\nexport interface SelectStoryLabelProps {\n isNext: boolean;\n navStoryTitle?: string;\n}\n\nexport default function SelectStoryLabel({ isNext, navStoryTitle }: SelectStoryLabelProps) {\n const { isMobile } = useDeviceType();\n\n if (isMobile) {\n return null;\n }\n\n return (\n \n {navStoryTitle && (\n <>\n {navStoryTitle}\n \n \n \n \n {isNext ? translate('next') : translate('previous')}\n \n \n )}\n \n );\n}\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n width: 36.5%;\n height: 90%;\n font-size: 14px;\n color: ${({ theme }) => theme.colors.base};\n ${({ theme }) => theme.mediaQueries.mobile} {\n display: none;\n visibility: none;\n }\n`;\n\nconst Title = styled.span`\n display: block;\n overflow-wrap: break-word;\n white-space: initial;\n display: -webkit-box;\n height: 60%;\n width: 100%;\n line-height: 1.5;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n`;\n\nconst LineSeparatorContainer = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 15%;\n width: 100%;\n justify-content: flex-start;\n`;\n\nconst StoryLine = styled.span`\n width: 35%;\n height: 1px;\n background: ${({ theme }) => theme.colors.baseGray};\n`;\n\ninterface SelectStoryTypeProp {\n isNext: boolean;\n}\nconst SelectStoryType = styled.span`\n height: 25%;\n width: 100%;\n ${({ isNext }) => (isNext ? 'justify-content: flex-end;' : 'justify-content: flex-start;')}\n`;\n","import styled from 'styled-components';\nimport { theme } from '../../../../../../pages/_app';\nimport { ArrowIcon } from '../../../../../elements/icons/arrow/arrowIcon';\nimport { arrowDirections } from '../../../../../utilities/arrowIconDirections';\nimport { ArrowContainer, CommonNavStyle } from '../newsNavigationStyles';\nimport SelectStoryLabel from '../selectStoryLabel/selectStoryLabel';\n\nexport interface DisabledNewsNavigationButtonProps {\n fillColor: string;\n arrowDirection: number;\n}\n\n// was: DisabledNavButton\nexport default function DisabledNewsNavigationButton({\n fillColor = theme.colors.base,\n arrowDirection = arrowDirections.left\n}: DisabledNewsNavigationButtonProps) {\n const isNext = arrowDirection === arrowDirections.right;\n const displayNavSubViews = () => {\n if (isNext) {\n return (\n <>\n \n \n );\n }\n return (\n <>\n \n \n );\n };\n return (\n \n {isNext && displayNavSubViews()}\n \n \n \n {!isNext && displayNavSubViews()}\n \n );\n}\n\nconst Container = styled.div`\n cursor: not-allowed;\n pointer-events: none;\n ${CommonNavStyle}\n`;\n","/* eslint-disable no-extra-parens */\nimport Link from 'next/link';\nimport styled from 'styled-components';\nimport { theme } from '../../../../../../pages/_app';\nimport { ArrowIcon } from '../../../../../elements/icons/arrow/arrowIcon';\nimport { arrowDirections } from '../../../../../utilities/arrowIconDirections';\nimport NewsDetailNavigationThumbnail from '../../../thumbnailComponents/newsDetailNavigationThumbnail/newsDetailNavigationThumbnail';\nimport NewsDetailCloseButton from '../../newsDetailButtons/newsDetailCloseButton/newsDetailCloseButton';\nimport DisabledNewsNavigationButton from '../disabledNewsNavigationButton/disabledNewsNavigationButton';\nimport { ArrowContainer, CommonNavStyle } from '../newsNavigationStyles';\nimport SelectStoryLabel from '../selectStoryLabel/selectStoryLabel';\n\nexport interface NewsDetailStoriesNavigationProps {\n previousStoryTitle: string | undefined;\n previousStoryImageUrl: string | undefined;\n previousStoryLink: string | undefined;\n previousStoryImageCaption?: string | undefined;\n nextStoryTitle: string | undefined;\n nextStoryVideoUrl: string | undefined;\n nextStoryImageUrl: string | undefined;\n nextStoryLink: string | undefined;\n nextStoryImageCaption?: string | undefined;\n previousStoryVideoUrl: string | undefined;\n returnPathOnClose: string;\n}\n\nconst hasStoryArrowColor = theme.colors.base;\nconst noStoryArrowColor = theme.colors.weakerText;\n\n// was: StoryNavigation\nexport default function NewsDetailStoriesNavigation({\n previousStoryImageUrl,\n previousStoryTitle,\n previousStoryLink,\n previousStoryImageCaption,\n previousStoryVideoUrl,\n nextStoryTitle,\n nextStoryImageUrl,\n nextStoryLink,\n nextStoryImageCaption,\n nextStoryVideoUrl,\n returnPathOnClose\n}: NewsDetailStoriesNavigationProps) {\n const prevArrowColor = previousStoryTitle ? hasStoryArrowColor : noStoryArrowColor;\n const nextArrowColor = nextStoryTitle ? hasStoryArrowColor : noStoryArrowColor;\n\n return (\n \n {previousStoryLink ? (\n \n \n \n \n {previousStoryImageUrl && (\n \n )}\n {}\n \n ) : (\n \n )}\n \n \n \n {nextStoryLink ? (\n \n {}\n {nextStoryImageUrl && (\n \n )}\n \n \n \n \n ) : (\n \n )}\n \n );\n}\n\nconst Container = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-top: 0px;\n width: 99%;\n height: 100%;\n`;\n\nconst StorySelectorLink = styled(Link)`\n cursor: pointer;\n ${CommonNavStyle}\n`;\n\nconst PopupStoryCloseContainer = styled.div`\n display: flex;\n justify-content: center;\n width: 60%;\n ${({ theme }) => theme.mediaQueries.tablet} {\n width: 30%;\n }\n`;\n","import styled from 'styled-components';\nimport type { PreviousNextStoryDetails } from '../../types';\nimport NewsDetailStoriesNavigation from './newsDetailStoriesNavigation/newsDetailStoriesNavigation';\n\nexport interface NewsDetailNavigationProps {\n previousStory: PreviousNextStoryDetails;\n nextStory: PreviousNextStoryDetails;\n sourceRoute: string;\n}\n\n// was: StoryPopupNav\nexport default function NewsDetailNavigation({ previousStory, nextStory, sourceRoute }: NewsDetailNavigationProps) {\n return (\n \n \n \n );\n}\n\nconst NewsDetailNavContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: center;\n height: 113px;\n width: 100%;\n background-color: ${({ theme }) => theme.colors.newsDetailNavbackground};\n ${({ theme }) => theme.mediaQueries.mobile} {\n height: 93px;\n }\n`;\n","import { parseAndFormatISO8601DateStr } from '../../../utilities/dateTimeUtils';\nimport { defaultDateFormat, defaultIANATimeZone } from '../../news/constants';\n\nexport const formatPressDate = (\n pressArticleDate: string,\n articleDateFormat: string = defaultDateFormat,\n setZone = false,\n timezone: string = defaultIANATimeZone\n): string => {\n if (pressArticleDate) {\n return parseAndFormatISO8601DateStr(pressArticleDate, articleDateFormat, setZone, timezone);\n }\n return '';\n};\n","/* eslint-disable prettier/prettier */\nimport { GetServerSideProps, InferGetServerSidePropsType } from 'next';\nimport { NewsArticleJsonLd, NextSeo, NextSeoProps } from 'next-seo';\nimport styled from 'styled-components';\nimport { TaboolaWidget } from '../../../../components/modules/ads/displayAds/widget/taboolaWidget';\nimport { shouldUseObjectFitContain, taboolaNewsDetailPath } from '../../../../components/modules/hurricane/constants';\nimport NewsDetailBackButton from '../../../../components/modules/news/newsDetail/newsDetailButtons/newsDetailBackButton/newsDetailBackButton';\nimport NewsDetailContentView from '../../../../components/modules/news/newsDetail/newsDetailContentView/newsDetailContentView';\nimport NewsDetailHeaderInfo from '../../../../components/modules/news/newsDetail/newsDetailHeaderInfo/newsDetailHeaderInfo';\nimport NewsDetailNavigation from '../../../../components/modules/news/newsDetail/newsDetailNavigation/newsDetailNavigation';\nimport { PreviousNextStoryDetails, Story } from '../../../../components/modules/news/types';\nimport { formatPressDate } from '../../../../components/modules/press/common/formatPressDate';\nimport { NewsDetailPathToCategoryMapping } from '../../../../lib/services/constants';\nimport { configurationsProvider } from '../../../../lib/services/envConfigService/environmentConfigsProvider/configurationsProvider';\nimport { mediaDataServiceFactory } from '../../../../lib/services/mediaDataService/mediaDataServiceFactory';\nimport { pageConfigServiceProvider } from '../../../../lib/services/pageConfigService/pageConfigService';\nimport { supportedEnvironment } from '../../../../lib/utils/common/constants';\nimport { generateCanonicalBaseURLForEnvironment } from '../../../../lib/utils/common/generateCanonicalBaseURLForEnvironment';\nimport { isValidString } from '../../../../lib/utils/guardUtils/guardUtils';\nimport { logger } from '../../../../lib/utils/logger/logger';\nimport { filterPageConfigFromConfigArray } from '../../../../lib/utils/seoConfigs/seoPageConfigHelpers';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ninterface NewsDetailPageProps {\n currentStory: Story;\n previousStoryDetails: PreviousNextStoryDetails;\n nextStoryDetails: PreviousNextStoryDetails;\n sourceRoute: string;\n sourceRouteName: string;\n newsDetailSeoConfig: unknown;\n canonicalURL: string;\n description: string;\n}\n\n// was: storyPopup.js\nexport default function NewsDetailPage({ \n currentStory, \n previousStoryDetails, \n nextStoryDetails, \n sourceRoute, \n sourceRouteName,\n newsDetailSeoConfig,\n canonicalURL,\n description\n}: InferGetServerSidePropsType) {\n const storyDatePublished = currentStory.PublishedDateTimeUtc ? formatPressDate(currentStory.PublishedDateTimeUtc) : '';\n const storyDateModified = currentStory.ModifiedDateTimeUtc ? formatPressDate(currentStory.ModifiedDateTimeUtc) : '';\n const storyDateCreated = currentStory.CreatedDateTimeUtc ? formatPressDate(currentStory.CreatedDateTimeUtc) : '';\n\n return (\n \n \n \n \n \n \n \n {currentStory\n ? \n : null}\n \n \n \n \n \n \n \n \n );\n}\n\nexport const getServerSideProps = ( async ({ params, query, res }) => {\n const { storyid } = params || {};\n const { source, pn } = query || {};\n\n const _logger = logger.createServerChildLogger({ pageRoute: `/wbweb-website-2/news/${storyid}` });\n\n if (!isValidString(storyid as string)) {\n _logger.error(`storyid not valid - storyid: ${storyid}`);\n\n return {\n redirect: {\n permanent: true,\n destination: '/news'\n }\n };\n }\n\n const envConfigs = configurationsProvider.getConfigurationDetails();\n const { ApplicationDetails } = envConfigs;\n const mediaDataService = mediaDataServiceFactory.getStoryDataServiceInstance(envConfigs, _logger);\n\n let sourceRoute = '';\n let sourceRouteName = '';\n let currentStory = {} as Story;\n let previousStoryDetails = {} as PreviousNextStoryDetails;\n let nextStoryDetails = {} as PreviousNextStoryDetails;\n\n // if there is no query/no source\n if (!source) {\n currentStory = await mediaDataService.getStoryByAlias(storyid as string) as unknown as Story;\n\n // if the storyid is a dead link or incomplete\n if (!currentStory) {\n _logger.error(`currentStory is null - currentStory: ${currentStory}`);\n\n return {\n redirect: {\n permanent: true,\n destination: '/news'\n }\n };\n }\n \n sourceRoute = 'weather-forecast/now';\n sourceRouteName = 'forecast';\n // if query/source is present\n } else { \n // get stories data, defaults to 6 stories, need to revisit for News page\n let stories = [];\n let parsedstories = [];\n if (source) {\n const pathToCategoryMappingObject = NewsDetailPathToCategoryMapping[source as keyof typeof NewsDetailPathToCategoryMapping];\n sourceRoute = pathToCategoryMappingObject.sourceRoute;\n sourceRouteName = pathToCategoryMappingObject.sourceRouteName;\n const maxResultsCount = pathToCategoryMappingObject.storyCount;\n stories = await mediaDataService.getStoriesByCategory({ category: pathToCategoryMappingObject.category, maxResults: maxResultsCount });\n parsedstories = JSON.parse(JSON.stringify(stories));\n }\n\n if (!isValidString(pn as string)) {\n // current story\n const currentStoryIndex: number = parsedstories?.findIndex((story: Story) => story?.NodeAlias === storyid);\n currentStory = parsedstories[currentStoryIndex];\n\n // previous story\n const previousStoryIndex = currentStoryIndex > 0 && parsedstories?.length ? currentStoryIndex - 1 : -1;\n const previousStory = parsedstories?.[previousStoryIndex] || undefined;\n previousStoryDetails = {\n id: previousStory?.Id,\n imageUrl: previousStory?.ThumbnailImageLink,\n imageCaption: previousStory?.ImageCaption,\n title: previousStory?.Title,\n storyLink: previousStory?.NodeAlias,\n videoUrl: previousStory?.VideoLinks\n };\n\n // next story\n const nextStoryIndex = currentStoryIndex < parsedstories?.length - 1 ? currentStoryIndex + 1 : undefined;\n const nextStory = nextStoryIndex && parsedstories[nextStoryIndex] || undefined;\n nextStoryDetails = {\n id: nextStory?.Id,\n imageUrl: nextStory?.ThumbnailImageLink,\n imageCaption: nextStory?.ImageCaption,\n title: nextStory?.Title,\n storyLink: nextStory?.NodeAlias,\n videoUrl: nextStory?.VideoLinks\n };\n\n if (!currentStory?.NodeAlias && !currentStory?.ImageLink) {\n _logger.error(\n `Either currentStory.NodeAlias or currentStory.ImageLink missing - currentStory.NodeAlias: \n ${currentStory?.NodeAlias} - currentStory.ImageLink: ${currentStory?.ImageLink}`\n );\n return {\n redirect: {\n permanent: true,\n destination: '/news'\n }\n };\n }\n } else {\n currentStory = await mediaDataService.getStoryByAlias(storyid as string) as unknown as Story;\n\n // if the storyid is a dead link or incomplete\n if (!currentStory) {\n _logger.error(`currentStory is null - currentStory: ${currentStory}`);\n\n return {\n redirect: {\n permanent: true,\n destination: '/news'\n }\n };\n }\n }\n\n }\n\n // config data for SEO\n const { data: pageConfig } = filterPageConfigFromConfigArray({ name: 'News_Detail', configs: pageConfigServiceProvider.getPageConfigDetails() }) || {};\n const baseURL = generateCanonicalBaseURLForEnvironment(ApplicationDetails.Environment as typeof supportedEnvironment[keyof typeof supportedEnvironment]);\n const pageTitle = pageConfig?.Title.replace('[[Title]]', currentStory?.Title);\n const description = pageConfig?.Description.replace('[[Description]]', currentStory?.Summary) || '';\n const imageUrl = currentStory?.ImageLink as string || pageConfig?.ShareImage as string;\n const imageAlt = currentStory?.ImageCaption as string || pageConfig?.Title as string;\n const canonicalURL = pageConfig?.CanonicalGlobalPage?.replace('[[Server]]', baseURL).replace('[[StoryId]]', currentStory?.NodeAlias as string) as string;\n const keywords = currentStory?.ContentTags.join();\n \n const newsDetailSeoConfig: NextSeoProps = {\n title: pageTitle,\n description: description,\n twitter: {\n cardType: 'summary_large_image'\n },\n openGraph: {\n type: 'article',\n article: {\n publishedTime: currentStory.PublishedDateTimeUtc,\n modifiedTime: currentStory.ModifiedDateTimeUtc,\n authors: [currentStory.ByLine],\n tags: currentStory.ContentTags\n },\n locale: 'en_US',\n url: canonicalURL,\n siteName: 'WeatherBug',\n title: pageTitle,\n images: [\n {\n url: imageUrl,\n width: 800,\n height: 600,\n alt: imageAlt,\n secureUrl: imageUrl\n }\n ],\n description: description\n },\n additionalMetaTags: [\n {\n property: 'twitter:title',\n content: pageTitle as string\n },\n {\n property: 'twitter:description',\n content: description as string\n },\n {\n property: 'twitter:image',\n content: imageUrl\n },\n {\n property: 'twitter:url',\n content: canonicalURL as string\n },\n {\n name: 'keywords',\n content: keywords\n }\n ]\n };\n\n res.setHeader(\n 'Cache-Control',\n 'public, s-maxage=604800, stale-while-revalidate=1900'\n );\n res.setHeader('Set-Cookie', []);\n\n return { \n props: { \n currentStory: JSON.parse(JSON.stringify(currentStory)),\n previousStoryDetails: JSON.parse(JSON.stringify(previousStoryDetails)),\n nextStoryDetails: JSON.parse(JSON.stringify(nextStoryDetails)),\n sourceRoute: JSON.parse(JSON.stringify(sourceRoute)),\n sourceRouteName: JSON.parse(JSON.stringify(sourceRouteName)),\n newsDetailSeoConfig: JSON.parse(JSON.stringify(newsDetailSeoConfig)),\n canonicalURL,\n description: description\n \n }\n };\n// eslint-disable-next-line\n}) satisfies GetServerSideProps;\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n height: auto;\n`;\n\nconst StoryPopupContent = styled.div`\n display: flex;\n flex-direction: column;\n background-color: ${({ theme }) => theme.colors.base};\n width: 100%;\n padding: 10px;\n`;\n\nconst StoryHeaderView = styled.div`\n display: flex;\n flex-direction: column;\n position: relative;\n justify-content: flex-start;\n height: auto;\n padding: 5px 0px 5px 0px;\n ${({ theme }) => theme.mediaQueries.large} {\n width: 1100px;\n margin-left: auto;\n margin-right: auto;\n }\n ${({ theme }) => theme.mediaQueries.mobile} {\n width: 100%;\n }\n`;\n\nconst TaboolaContainer = styled.div`\n width: 93%;\n margin: 0 auto;\n`;\n","'use client';\nimport { createContext, Component, createElement, isValidElement, useContext, useState, useMemo, forwardRef } from 'react';\n\nconst ErrorBoundaryContext = createContext(null);\n\nconst initialState = {\n didCatch: false,\n error: null\n};\nclass ErrorBoundary extends Component {\n constructor(props) {\n super(props);\n this.resetErrorBoundary = this.resetErrorBoundary.bind(this);\n this.state = initialState;\n }\n static getDerivedStateFromError(error) {\n return {\n didCatch: true,\n error\n };\n }\n resetErrorBoundary() {\n const {\n error\n } = this.state;\n if (error !== null) {\n var _this$props$onReset, _this$props;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n (_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {\n args,\n reason: \"imperative-api\"\n });\n this.setState(initialState);\n }\n }\n componentDidCatch(error, info) {\n var _this$props$onError, _this$props2;\n (_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);\n }\n componentDidUpdate(prevProps, prevState) {\n const {\n didCatch\n } = this.state;\n const {\n resetKeys\n } = this.props;\n\n // There's an edge case where if the thing that triggered the error happens to *also* be in the resetKeys array,\n // we'd end up resetting the error boundary immediately.\n // This would likely trigger a second error to be thrown.\n // So we make sure that we don't check the resetKeys on the first call of cDU after the error is set.\n\n if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {\n var _this$props$onReset2, _this$props3;\n (_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {\n next: resetKeys,\n prev: prevProps.resetKeys,\n reason: \"keys\"\n });\n this.setState(initialState);\n }\n }\n render() {\n const {\n children,\n fallbackRender,\n FallbackComponent,\n fallback\n } = this.props;\n const {\n didCatch,\n error\n } = this.state;\n let childToRender = children;\n if (didCatch) {\n const props = {\n error,\n resetErrorBoundary: this.resetErrorBoundary\n };\n if (typeof fallbackRender === \"function\") {\n childToRender = fallbackRender(props);\n } else if (FallbackComponent) {\n childToRender = createElement(FallbackComponent, props);\n } else if (fallback === null || isValidElement(fallback)) {\n childToRender = fallback;\n } else {\n throw error;\n }\n }\n return createElement(ErrorBoundaryContext.Provider, {\n value: {\n didCatch,\n error,\n resetErrorBoundary: this.resetErrorBoundary\n }\n }, childToRender);\n }\n}\nfunction hasArrayChanged() {\n let a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n let b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));\n}\n\nfunction assertErrorBoundaryContext(value) {\n if (value == null || typeof value.didCatch !== \"boolean\" || typeof value.resetErrorBoundary !== \"function\") {\n throw new Error(\"ErrorBoundaryContext not found\");\n }\n}\n\nfunction useErrorBoundary() {\n const context = useContext(ErrorBoundaryContext);\n assertErrorBoundaryContext(context);\n const [state, setState] = useState({\n error: null,\n hasError: false\n });\n const memoized = useMemo(() => ({\n resetBoundary: () => {\n context.resetErrorBoundary();\n setState({\n error: null,\n hasError: false\n });\n },\n showBoundary: error => setState({\n error,\n hasError: true\n })\n }), [context.resetErrorBoundary]);\n if (state.hasError) {\n throw state.error;\n }\n return memoized;\n}\n\nfunction withErrorBoundary(component, errorBoundaryProps) {\n const Wrapped = forwardRef((props, ref) => createElement(ErrorBoundary, errorBoundaryProps, createElement(component, {\n ...props,\n ref\n })));\n\n // Format for display in DevTools\n const name = component.displayName || component.name || \"Unknown\";\n Wrapped.displayName = \"withErrorBoundary(\".concat(name, \")\");\n return Wrapped;\n}\n\nexport { ErrorBoundary, ErrorBoundaryContext, useErrorBoundary, withErrorBoundary };\n"],"names":["window","__NEXT_P","push","__webpack_require__","NewsDetailBackButton","param","backToPageText","backToPagePath","userProfile","useAppSelector","selectUserProfile","linkWithOptionalParams","activeHurricanePath","concat","WindUnit","PressureUnit","normalizeLink","includes","jsx_runtime","jsx","StyledLink","href","jsxs","Container","Icon","ArrowIcon","width","height","symbolFillColor","theme","colors","arrowIconFillColor","strokeColor","arrowDirection","arrowDirections","left","BackText","translate","styled","Link","div","withConfig","typography","fontFamilies","secondary","mediaQueries","mobile","weakerText","span","NewsDetailAdConfigs","slotId","tablet","desktop","ErrorBoundaryIcon","memo","errorBoundary","svg","viewBox","fill","xmlns","rect","rx","path","d","displayName","NewsErrorUI","IconWrapper","NoDataText","isTitle","NoDataDescriptionWrapper","CatchErrorInStory","isError","children","Fragment","baseWeakest","newsDetailFallbackIconBackground","storyDateGrey","NewsDetailContentView","storyImageUrl","storyText","isStoryWithMapsOrIndexTag","storyVideoUrl","storyImageCaption","deviceTypeKey","isMobile","isTablet","useDeviceType","ContentBody","StoryImageVideoDisplay","videoLink","StoryText","dangerouslySetInnerHTML","__html","MobileAdWrapper","DisplayAdWidgetWrapper","is300x250Ad","ContentBodyWrapper","is300x600Ad","large","black","p","strongText","NewsDetailHeaderInfo","storyTitle","storyDate","storyAuthor","StoryTitle","StoryDetails","newsDetailHeaderContainer","h1","textShadow","VideoPlayIcon","base","stroke","version","circle","id","strokeWidth","cx","cy","r","NewsDetailThumbnailContent","hasVideoLinkUrl","isNavThumbnail","imageCaption","imgLoaded","setImgLoaded","useState","imgLoadError","setImageLoadError","Image","src","alt","priority","onLoad","onError","style","objectFit","StoryImageLoadError","PlayIconContainer","NewsDetailNavigationThumbnail","videoLinkUrl","NewsDetailCloseButton","returnPath","CloseIcon","CommonNavStyle","css","ArrowContainer","isNext","SelectStoryLabel","navStoryTitle","Title","LineSeparatorContainer","StoryLine","SelectStoryType","baseGray","DisabledNewsNavigationButton","fillColor","right","displayNavSubViews","hasStoryArrowColor","noStoryArrowColor","NewsDetailStoriesNavigation","previousStoryImageUrl","previousStoryTitle","previousStoryLink","previousStoryImageCaption","previousStoryVideoUrl","nextStoryTitle","nextStoryImageUrl","nextStoryLink","nextStoryImageCaption","nextStoryVideoUrl","returnPathOnClose","prevArrowColor","nextArrowColor","StorySelectorLink","PopupStoryCloseContainer","NewsDetailNavigation","previousStory","nextStory","sourceRoute","NewsDetailNavContainer","imageUrl","undefined","storyLink","title","videoUrl","newsDetailNavbackground","formatPressDate","pressArticleDate","articleDateFormat","setZone","timezone","parseAndFormatISO8601DateStr","NewsDetailPage","currentStory","previousStoryDetails","nextStoryDetails","sourceRouteName","newsDetailSeoConfig","canonicalURL","description","storyDatePublished","PublishedDateTimeUtc","storyDateModified","ModifiedDateTimeUtc","storyDateCreated","CreatedDateTimeUtc","NextSeo","canonical","NewsArticleJsonLd","url","images","ImageLink","section","keywords","ContentTags","join","datePublished","dateModified","dateCreated","authorName","publisherName","publisherLogo","body","Text","StoryPopupContent","StoryHeaderView","ByLine","ThumbnailImageLink","VideoLinks","ImageCaption","shouldUseObjectFitContain","canonicalUrl","TaboolaContainer","TaboolaWidget","pageId","taboolaNewsDetailPath","ErrorBoundaryContext","react__WEBPACK_IMPORTED_MODULE_0__","createContext","initialState","didCatch","error","ErrorBoundary","Component","constructor","props","resetErrorBoundary","bind","state","getDerivedStateFromError","_this$props$onReset","_this$props","_len","arguments","length","args","_key","onReset","call","reason","setState","componentDidCatch","info","_this$props$onError","_this$props2","componentDidUpdate","prevProps","prevState","resetKeys","hasArrayChanged","a","b","some","item","index","Object","is","_this$props$onReset2","_this$props3","next","prev","render","fallbackRender","FallbackComponent","fallback","childToRender","createElement","isValidElement","Provider","value"],"sourceRoot":""}